package com.jiakai.cashinterfacemucon.service.impl;

import com.jiakai.cashinterfacemucon.dao.ProductIDMapper;
import com.jiakai.cashinterfacemucon.model.ProductID;
import com.jiakai.cashinterfacemucon.service.ProductIDService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductIDServiceImpl implements ProductIDService {


    @Autowired
    private ProductIDMapper productIDMapper;

    @Override
    public int deleteByPrimaryKey(String productId) {
        return 0;
    }

    @Override
    public int insert(ProductID record) {
        return productIDMapper.insert(record);
    }

    @Override
    public int insertSelective(ProductID record) {
        return 0;
    }

    @Override
    public ProductID selectByPrimaryKey(String productId) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(ProductID record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(ProductID record) {
        return 0;
    }

    public List<ProductID> findAll(){
        return productIDMapper.findAll();
    }

    public int deleteAll(){
        return productIDMapper.deleteAll();
    }
}
